package FactoryMethodPattern.ConcreteObject;

import FactoryMethodPattern.ObjectFramework.Product;

public class IDCard extends Product {

    private String owner;

    public IDCard(String owner) {
        System.out.println("制作"+owner+"的ID卡");
        this.owner = owner;
    }

    @Override
    public void use() {
        System.out.println(owner+"使用ID卡");
    }

    public String getOwner() {
        return owner;
    }
}
